package com.atguigu.eduservice.client.impl;

import com.atguigu.commonutils.vo.CommMemberVo;
import com.atguigu.eduservice.client.UcenterClient;
import com.atguigu.servicebase.exceptionhandler.SelfExceptionHandler;
import org.springframework.stereotype.Component;

@Component
public class UcenterFeignClient implements UcenterClient {
    @Override
    public CommMemberVo getCommMemberInfo(String memberId) {
        System.out.println("ucenter调用失败");
//        return null;
        throw new SelfExceptionHandler("ucenter调用失败",20001);
    }
}
